<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>授权成功</title>
</head>
<script th:inline="javascript">

    var code = [[${code}]];
    var msg = [[${msg}]];

    close();

    //定义函数close关闭当前窗口
    function close(){
        if(code == 200){
            alert(msg);
            window.location.href="https://www.mind-erp.com";
        }else{
            alert(msg);
        }
    }

</script>
<body>
</body>
</html>